<%@ tag body-content="empty" pageEncoding="UTF-8" %>
<%@ tag import="java.util.Calendar,
				java.text.SimpleDateFormat" %>

<%@ attribute name="date" type="java.util.Date" %>

<%! Calendar cal = Calendar.getInstance();
	SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd"); %>

<%

	String result = null;
	if (date == null) {
		result = sdf.format(cal.getTime());
	} else {
		result = (sdf.format(date)).trim();
	}	
%>
<%=result %>